<template>
  <el-carousel :interval="5000" arrow="always" height="500px">
    <el-carousel-item v-for="(item,index) in bannerList" :key="index">
      <h3 class="banner-box" :style="{backgroundImage:`url(${item.img})`}"></h3>
    </el-carousel-item>
  </el-carousel>
</template>
<script>
import bannerImg from '@/assets/images/banner_03.jpg'
export default{
  name:'BannerPc',
  data(){
    return{
      bannerList:[
        {
          img:bannerImg
        },
        {
          img:bannerImg
        }
      ]
    }
  }
}
</script>
<style>
.banner-box {
  height: 100%;
  margin: 0;
  padding: 0;
  background-size: cover;
}
</style>